package exception;
public class MyException extends Exception {

	public void method() throws MyException {}
	
	public static void main(String[] args) {
		MyDetailedException exception = new MyDetailedException();
		exception.method();
	}
}

class MyDetailedException extends MyException {
	@Override
	public void method(){}
}

class MyExtraDetailedException extends MyDetailedException {
	//@Override
//	public void method() throws MyExtraDetailedException{}
}

